Ti.include('dump.js');
Ti.include('loading.js');


var loadWin = Titanium.UI.createWindow({
	fullscreen: true
});
var activeMovie = Ti.Media.createVideoPlayer({
	url: "media/loading/v1.mp4",
    movieControlMode: Titanium.Media.VIDEO_CONTROL_NONE,
});



var uD = new uDumper();
if(uD.setup()){
	
	loadWin.add(activeMovie);
	activeMovie.play();  		
	loadWin.open();
	
	activeMovie.addEventListener('complete', function(e){
	   	Ti.include('master.js');
		var wMa = new wMaster();
		loadWin.close();
		wMa.tabWin("news").open({
			transition: Ti.UI.ANIMATION_CURVE_EASE_OUT
		});
	});
	
	loadWin.addEventListener('swipe', function(e){
		Ti.include('master.js');
		var wMa = new wMaster();
		loadWin.close();
		wMa.tabWin("news").open({
			transition: Ti.UI.ANIMATION_CURVE_EASE_OUT
		});
	});

	
}